import request from '@/utils/request'

// 查询流程日志列表
export function listSysWorklog(query) {
  return request({
    url: '/system/sysWorklog/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/system/sysWorklog/initBean',
        method: 'post'
    })
}

// 查询流程日志详细
export function getSysWorklog(logid) {
  return request({
    url: '/system/sysWorklog/' + logid,
    method: 'get'
  })
}

// 新增流程日志
export function addSysWorklog(data) {
  return request({
    url: '/system/sysWorklog',
    method: 'post',
    data: data
  })
}

// 修改流程日志
export function updateSysWorklog(data) {
  return request({
    url: '/system/sysWorklog',
    method: 'put',
    data: data
  })
}

// 删除流程日志
export function delSysWorklog(logid) {
  return request({
    url: '/system/sysWorklog/' + logid,
    method: 'delete'
  })
}
